/*
 * User.fx
 *
 * Created on 4-mag-2011, 17.10.03
 */

package jfx_mobile_test_01;

/**
 * @author Mitch
 */

public class User {
    public var username: String;
    public var password: String;
    public var status : Boolean;

    public function printName() {
        println("Name: {username} ");
    }

    public function LoginSucces(inStatus: Boolean) {
        if (inStatus == true) {
            this.status = true;
        } else {
            this.status = false;
        }
    }

    public function isLogged(): Boolean {
            return this.status;
    } //isLogged
    
}//class User
